<div id="about">
    <div id="about-title">
        <h1>Find professional logo - Free Download Logo Design AI, SVG, PS</h1>
    </div>
    <div id="search-content">
        <div id="search-box">
            <?=$form->create('find',array('id'=>'SearchBox','action'=>'index'));?>
            <?=$form->text('Post.find', array('size'=>'40','class'=>'input-search','value'=>$this->params['pass'][0])); ?>
            <?=$form->submit('Search',array('id'=>'search-submit','div'=>false)); ?>
            <?=$form->end(); ?>
        </div>

        <div id="search-result">
            <?php if(isset($postResults)):?>
                <?php if(!empty($postResults)) :?>
                    <?php echo $paginator->counter(
                    array(
                        'format' => 'Total logo found : <i>%count%</i>')
                        );
                    ?>
                <div id="result-wrapper">
                    <?php foreach($postResults as $postResult): ?>
                        <div class="result-image">
                            <?=$html->image('thumbs/'.$postResult['Path']['name'].$postResult['Post']['image'].'_thumb.jpg',array('url'=>$baseUrl.'/view/'.$postResult['Post']['slug'],'alt'=>$postResult['Post']['title']));?>
                        </div>
                        <div class="result-description">
                            <h1><?=$html->link(ucfirst($postResult['Post']['title']),$baseUrl.'/view/'.$postResult['Post']['slug'],array('title'=>$postResult['Post']['title'].' Free download logo AI SVG PDF'))?></h1>
                            <strong>Category : </strong><?=$postResult['Category']['name']?><br />
                            <strong>Tag : </strong>
                            <?php foreach($postResult['Tag'] as $tag) :?>
                            <?=$tag['name'].' '?>
                            <?php endforeach;?>
                            <?=$postResult['Post']['description']?><br />
                        </div>
                        <div class="clear"></div>
                    <?php endforeach;?>
                </div>

                <div id="pagination">
                    <?php $paginator->options(array('url' => str_replace(" ","+",$this->passedArgs[0]),'separate'=>''));?>
                    <?php
                    echo $paginator->prev('&laquo; Prev ', array('escape' => false,'id'=>'prev'));
                    echo '&nbsp';
                    echo $paginator->numbers(array('class' => 'selectedm','separator'=>'&nbsp;'));
                    echo '&nbsp';
                    echo $paginator->next(' Next &raquo;', array('escape' => false,'id'=>'next'));
                    ?>
                </div>

                <?php else: ?>
                <?='<div id="warning">Sorry, no logos found<i>. You can see our ads to find "'.$warning.'"</i></div>'?>
                <?php endif;?>
            <?php endif;?>
        </div>
    </div>

    <div id="about-image">
        <div id="about-image-title">
            <h1>Our random free logos</h1>
        </div>
        <?php if(isset($randomPosts)) :?>
        <?php foreach($randomPosts as $randomPost) :?>
        <div class="content-double-wrap">
            <div class="content-double-box">
                <div class="content-double-image">
                    <?=$html->image('thumbs/'.$randomPost['Path']['name'].$randomPost['Post']['image'].'_thumb.jpg',array('url'=>$baseUrl.'/view/'.$randomPost['Post']['slug'],'alt'=>$randomPost['Post']['title']));?>
                </div>
                <div class="content-double-description">
                    <h1><?=$html->link(ucfirst($randomPost['Post']['title']),$baseUrl.'/view/'.$randomPost['Post']['slug'],array('title'=>$randomPost['Post']['title'].' Free download logo AI SVG PDF'))?></h1>
                    <strong>Category : </strong><?=$randomPost['Category']['name']?><br />
                    <strong>Tag : </strong>
                    <?php foreach($randomPost['Tag'] as $tag) :?>
                    <?=$tag['name'].' '?>
                    <?php endforeach;?>
                </div>
                <div class="clear"></div>
            </div>
        </div>
        <?php endforeach;?>
        <?php endif;?>
    </div>
    <div class="clear"></div>
</div>